@import "basic";
@import "color";

.pop {
  .abs;
  display: none;
  .popwin {
    .abs;
    transform: translateX(-50%) scale(0.2);
    transform-origin: 50% 100%;
    opacity: 0;
    transition: all ease-in-out 0.1s;
    bottom: 0;
    pointer-events: none;
    > .wrap {
      padding: 15px;
      background-color: fade(@theme, 90%);
      border-radius: 10px;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
      min-width: 150px;
      min-height: 100px;
      user-select: text;
      pointer-events: auto;
      overflow: hidden;
      .title {
        margin: -15px;
        color: white;
        padding: 15px;
        padding-left: 20px;
        padding-bottom: 10px;
        padding-right: 40px;
        height: 45px;
        line-height: 20px;
        font-size: 20px;
        white-space: nowrap;
        background-color: fade(@themeDark,80%);
      }
      .content {
        font-size: 14px;
        color: white;
        min-width: 200px;
        min-height: 150px;
        margin-top: 30px;
        .pTable {
          tr {

          }
          th, td {
            font-size: 14px;
            padding: 2px 5px;
          }
          th {
            white-space: nowrap;
            .tal;
            vertical-align: top;
          }
          img {
            width: 200px;
          }
        }
      }
    }
    > .close {
      width: 40px;
      height: 40px;
      background-image: url("../img/icon/icon_24_panelClose_W.png");
      background-repeat: no-repeat;
      background-position: 8px 8px;
      background-size: 24px 24px;
      cursor: pointer;
      .abs;
      right: 0;
      top: 0;
      pointer-events: auto;
      opacity: 0.5;
    }
    > .arrow {
      height: 40px;
      width: 100%;
      background-image: url("../img/markerPopupArrow3.png");
      background-repeat: no-repeat;
      background-position: center center;
    }
  }
  &.open {
    display: block;
    .popwin {
      transform: translateX(-50%) scale(1);
      opacity: 1;
      .noanimation;
    }
  }
}